<template>
    <div>
        <el-button style="padding: 5px" :size="'small'" type="primary"
                   @click="props.tableItem.btnArray[0].handle(props.scope)" text>详情</el-button>
      <el-button style="padding: 5px" :size="'small'" type="primary" v-if="props.scope.disableFlag == 1"
                 @click="props.tableItem.btnArray[1].handle(props.scope)" text>修改</el-button>
      <el-button style="padding: 5px" :size="'small'" type="primary" v-if="props.scope.disableFlag == 1"
                 @click="props.tableItem.btnArray[2].handle(props.scope)" text>启用</el-button>
      <el-button style="padding: 5px" :size="'small'" type="danger" v-if="props.scope.disableFlag == 0"
                 @click="props.tableItem.btnArray[3].handle(props.scope)" text>禁用</el-button>
        <el-button style="padding: 5px" :size="'small'" type="primary"
                   @click="props.tableItem.btnArray[4].handle(props.scope)" text>重置密码</el-button>
    </div>
</template>
<script setup>
import { onMounted } from 'vue'
import $button from '@/button'
const props = defineProps({ scope: { default: function () { return [] } }, tableItem: { default: function () { return [] } } })
onMounted(() => {
})
</script>
